//
//  FirstCollectionViewCell.m
//  BeanTrip
//
//  Created by dlios on 15-6-29.
//  Copyright (c) 2015年 PandaGroup. All rights reserved.
//

#import "FirstCollectionViewCell.h"
#define WIDTH ([UIScreen mainScreen].bounds.size.width/375)
#define HEIGH ([UIScreen mainScreen].bounds.size.height/667)



@implementation FirstCollectionViewCell

- (void)dealloc
{
    [_myImageView release];
    [_nameLabel release];
    [super dealloc];
}
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.myImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 170* WIDTH, 130 * WIDTH)];
        //设置外观样式
        self.myImageView.layer.masksToBounds = YES;
        self.myImageView.layer.cornerRadius = 8.0;
        self.myImageView.layer.borderWidth = 1;
        self.myImageView.layer.borderColor = [[UIColor whiteColor] CGColor];
        
        [self.contentView addSubview:self.myImageView];
        self.myImageView.backgroundColor = [UIColor orangeColor];
        [_myImageView release];
        
        self.nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 130 * WIDTH, 170*WIDTH, 50*WIDTH)];
        //        self.nameLabel.backgroundColor = [UIColor greenColor];
        self.nameLabel.font = [UIFont systemFontOfSize:17*HEIGH];
        self.nameLabel.numberOfLines = 0;
        
        [self.contentView addSubview:self.nameLabel];
        [_nameLabel release];
        
    }
    return self;
}

@end
